'Declaration
Public Overloads Function GetFromExtensionAndHeader( _ ByVal fileExtension As System.String, _ ByVal header() As System.Byte, _ ByVal forReading As System.Boolean _ ) As TDocumentFormat
'Usage
Dim instance As NDocumentFormatRegistry(Of TDocumentFormat) Dim fileExtension As System.String Dim header() As System.Byte Dim forReading As System.Boolean Dim value As TDocumentFormat value = instance.GetFromExtensionAndHeader(fileExtension, header, forReading)
public TDocumentFormat GetFromExtensionAndHeader( System.string fileExtension, System.byte[] header, System.bool forReading )
Parameters
- fileExtension
- File extension without the dot, for example "txt", "docx" and so on.
- header
- File header. Can be null.
- forReading
- Indicates whether the file is for reading or for writing.